#ifndef IEDITORSMANAGER_H
#define IEDITORSMANAGER_H

#include "Include/IPluginBase.h"

namespace Plugins
{
class Project;
class IEditorsManager: public IPluginBase
{
public:
    virtual ~IEditorsManager(){}
    virtual QStringList openedEditors() = 0;
    virtual bool isEditorOpened(const QString& file) = 0;

    virtual QWidget * widget() = 0;
    virtual QWidget * openedDocsWidget() = 0;
    virtual void setProject(Project *) = 0;
public slots:
    virtual void openEditor(const QString& file, int offset = 0, bool offsetIsLine = false) = 0;
    virtual void closeEditor(const QString& file) = 0;
    virtual bool activateEditor(const QString& file) = 0;
    virtual void closeAllEditors() = 0;
};

}

Q_DECLARE_INTERFACE(Plugins::IEditorsManager, "Plugins.IEditorsManager/1.0")

#endif
